package myWindows;

import java.awt.FlowLayout;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;

public class JTestButton extends JMyVentana {
    public JTestButton() {
        InitGUI();
    }
    
    public void InitGUI(){
        this.getContentPane().setLayout(new FlowLayout());
        
        JButton MyBoton1, myBoton2;
        Icon Imagen1 = new ImageIcon(getClass().getResource("ACEPTARD.gif"));
        Icon Imagen2 = new ImageIcon(getClass().getResource("ACEPTARE.gif"));
        
        MyBoton1 = new JButton("Boton Simple");
        this.getContentPane().add(MyBoton1);
        
        myBoton2 = new JButton(Imagen1);
        this.getContentPane().add(myBoton2);
        myBoton2.setRolloverIcon(Imagen2);
        
    }

    public static void main(String[] args) {
        JTestButton obj = new JTestButton();
        obj.setVisible(true);
        
    }
}
